import { Component, OnInit } from '@angular/core';
import { OrderAddService } from './orderadd.service';
import { QuestionBase } from '../../../../../theme/components/dynamic-form-components/dynamic-form-base/question-base';
import { FormConfig } from '../../../../../theme/components/dynamic-form/form-base';
@Component({
  selector: 'app-orderadd',
  templateUrl: './orderadd.component.html',
  styleUrls: ['./orderadd.component.scss'],
  providers: [OrderAddService]
})
export class OrderaddComponent implements OnInit {
  public OrderAddConfig: FormConfig = {
    url: "user"
  }
  public OrderAddQuestions: QuestionBase<any>[] = [];

  constructor(
    private service: OrderAddService
  ) {
    this.OrderAddQuestions = this.service.getQuestions();
  }

  ngOnInit() {
  }

}
